<template>
  <div>
    <p class="m-title">密保问题</p>
    <div class="m-trade">
      <w-form-validate>
        <div class="m-form">
          <div class="item">
            <span class="title">密保问题1</span>
            <div class="a-input">
              <w-select></w-select>
            </div>
          </div>
          <div class="item">
            <span class="title">问题答案</span>
            <div class="a-input">
              <w-input holder="请填写"></w-input>
            </div>
          </div>
          <div class="item">
            <span class="title">密保问题2</span>
            <div class="a-input">
              <w-select></w-select>
            </div>
          </div>
          <div class="item">
            <span class="title">问题答案</span>
            <div class="a-input">
              <w-input holder="请填写"></w-input>
            </div>
          </div>
        </div>
        <div class="sub">
          <button class="btn main" type="submit">保存</button>
        </div>
      </w-form-validate>
    </div>
  </div>
</template>

<style lang="scss">
.m-form {
  .form-control {
    height: 30px;
  }
  .w-input .error-tip {
    left: 0;
  }
  .form-control[disabled] {
    border: none;
    background: transparent;
    padding-left: 0
  }
}
.sub {
  .btn {
    width: 140px;
    height: 50px;
  }
}
</style>

<style lang="scss" scoped>
.m-title {
  font-size: 16px;
  margin-bottom: 20px; 
  font-weight: bold;
}
.m-form {    
  text-align: right;
  width: 52%;
  margin: 20px auto;
  .item {
    padding-bottom: 20px;
    &:last-child {
      padding-bottom: 0;
    }
    .title {
      font-size: 12px;
      text-align: right;
      padding-right: 20px;
      display: inline-block;
    }
    .a-input {
      width: 360px;
      display: inline-block;
    }
    .m-code {
      display: inline-block;
    }
  }
}
.sub {
  width: 140px;
  height: 50px;
  margin: 30px auto 0;
}
</style>
